package cn.edu.nwafu.core.pojo.query;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel(description = "订单搜索对象")
public class TicketInfoQuery {

    @ApiModelProperty(value = "航班日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "订票日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "出发城市")
    @ExcelProperty(value = "出发城市",index = 2)
    private String startCity;

    @ApiModelProperty(value = "到达城市")
    @ExcelProperty(value = "到达城市",index = 4)
    private String reachCity;
}
